//
//  BLDouyuSearchModal.swift
//  BLLiveTelecast
//
//  Created by BigL055 on 16/6/20.
//  Copyright © 2016年 bigL.liveTelecast.com. All rights reserved.
//

import UIKit

class BLDouyuSearchModal: NSObject {

    var count : NSNumber = 0
    
    var room : [[String : AnyObject]] = [[:]]
    
    lazy var roomlistArray = [BLDouyuRoomDetalModal]()

}


extension BLDouyuSearchModal{
    
    class func initWithDict(dict : [String : AnyObject]) -> BLDouyuSearchModal{
        let item = BLDouyuSearchModal()
        item.setValuesForKeysWithDictionary(dict)
        
        
        //模型转换
        for dict in item.room{
            let tempItem = BLDouyuRoomDetalModal.initWithDict(dict)
            item.roomlistArray.append(tempItem)
        }

        
        return item
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }
}